package fh.hof.lucene.controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;

import javax.swing.JFileChooser;

class AddAction implements ActionListener {
	
	JFileChooser jfc = new JFileChooser();
	
	
    public void actionPerformed(ActionEvent ae) {
        //... Open a file dialog.
        int retval = jfc.showOpenDialog(null);
        if (retval == JFileChooser.APPROVE_OPTION) {
            //... The user selected a file, get it, use it.
            File file = jfc.getSelectedFile();

            //... Update user interface.

            //tfDocPath.setText(file.getPath());
        }
    }
}
